<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <h1>监测鼠标滚轮事件</h1>
    <script src="./../mousewhee.common.js"></script>
    <script>
        mousewheel(document, function(event) {
            if (event.wheelDelta < 0) { alert("鼠标向上滚了！"); }
        });
    </script>
</body>

</html>